
all: message.py alarm.py constants.py

message.py: ../src/data.h
	mig -target=telosb -o $@ -python-classname=DataMessage python $< DataMessage

alarm.py: ../src/alarm.h
	mig -target=telosb -o $@ -python-classname=AlarmMessage python $< AlarmMessage

constants.py: ../src/data.h
	ncg -o $@ -python-classname=Constants python $< NUMBER_OF_NODES SAMPLEWINDOW_SIZE STEP_SLOPE_SCALE THR_LIGHT

clean:
	rm -f message.py alarm.py constants.py
